<?php

namespace App\Http\Middleware;

use App\Services\common\App;
use Closure;

class ApiMiddleware
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {

//        $user = auth('api')->user();
//        if ($user && $user->status == 0){
//            return error('账号已被封禁!');
//        }
        $request->header('authorization');
        return $next($request);
    }
}
